﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>重名查询结果</title>
    <meta charset='UTF-8'>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no,email=no" name="format-detection" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
    <link href="../css/alipay/alipay.css" type="text/css" rel="stylesheet" />
    <link href="../css/alipay/amui-demo_files/toast.css" type="text/css" rel="stylesheet" />
    <link href="../css/alipay/button.css" type="text/css" rel="stylesheet" />
    <link href="../css/alipay/amui-demo_files/dialog.css" type="text/css" rel="stylesheet" />
    <link href="../css/alipay/amui-demo_files/button-group.css" type="text/css" rel="stylesheet" />
    <link href="../css/main.css" type="text/css" rel="stylesheet" />
    <link href="../css/dialog.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../js/extensions/base.js"></script>
    <script type="text/javascript" src="../css/alipay/amui-demo_files/amui.js"></script>
    <style type="text/css">
    	.am-list:not([am-version]){padding: 0px;}
    	.am-list:not([am-version]) .am-list-header{margin:9px 9px 0; padding-bottom: 9px; font-size: 12px;}
    	.am-list:not([am-version]) .am-list-footer{margin:9px 9px; font-size: 12px;}
    </style>
    <script type="text/javascript">
        $(function(){
            /*$("#dialogbut").click(function(){
             $(".mask").show();
             $(".demo-content").show();
             });*/

            $(".am-dialog-button").click(function(){
                $(".mask").hide();
                $(".demo-content").hide();
            });

        })
    </script>
</head>
<body>
<div class="mask" style="display: none;"></div>
<div class="demo-content"  style="display: none;">
    <div class="demo-mobile">
        <div class="am-dialog show" style="z-index: 10001;">
            <div class="am-dialog-wrap">
                <div class="am-dialog-body">
                    <p id="warn" class="am-dialog-brief"></p>
                </div>
                <div class="am-dialog-footer">
                    <a class="am-dialog-button">取消</a>
                    <a class="am-dialog-button">确定</a>
                </div>
            </div>
        </div>
    </div>
</div>
    <div data-role="page" id="detailDiv">
        <div data-role="content" style="background-color:#EFEFF4;">
        	<div class="am-list" am-mode="flat chip 43px">
    <div class="am-list-header">重名信息</div>
    <div class="am-list-body">
        <a href="#" class="am-list-item">
             <div class="am-list-label">在本省范围内，与您输入的姓名重名的人数为
</div>
                            <div class="am-list-content am-ft-right"style="min-width:50px;" id="snCount"></div>
        </a>
    </div>
    <div class="am-list-footer">注:仅限吉林省内常驻居民重名数据统计</div>
</div>
        	
        	
            <div class="am-list" am-mode="flat chip" style="display: none;">
                <div class="am-list-header">重名信息</div>
                <div class="am-list" am-mode="radius">
                    <div class="am-list-body">
                        <div class="am-list-item">
                            <div class="am-list-label">在本省范围内，与您输入的姓名重名的人数为
</div>
                            <div class="am-list-content am-ft-right"style="min-width:50px;" id="snCount"></div>
                        </div>
						<div class="am-list-footer">注:仅限吉林省内常驻居民重名数据统计
</div>
                    </div>
                </div>
                </div>
        </div>
    </div>
   <div id="fuwu" style="display: block;font-family:STHeitiSC  ;font-size: 12px; margin-bottom: 15px; margin-left: 0px; width: 100%; text-align: center; position: absolute; bottom: 0px;z-index:-1;">
            <div class="am-agreement am-ft-gray am-ft-sm">
                <p>
                    本服务由吉林省公安厅<br />江苏欧索软件有限公司提供支持
                </p>
            </div>
        </div>
    <script>
        $(function () {
            var name = decodeURI(getQueryStringByName("name"));
            var url = "../../../api/cityservice/name/repeat";
            $.ajax(url, {
                type: 'post',
                data: {"name": name},
                success: function (resp) {
                    if(resp && resp.succ && resp.statusCode == 100101){
                        $("#snCount").html(resp.data.count);
                    } else {
                        $("#warn").html(resp.msg);
                        $(".mask").show();
                        $(".demo-content").show();
                    }
                },
                error: function (xhr) {
                    $("#warn").html("查询结果失败！");
                    $(".mask").show();
                    $(".demo-content").show();
                },
                complete: function () {
                }
            });
        });
    </script>
</body>
</html>
